import 'package:fish_redux/fish_redux.dart';

class PayTeacherState implements Cloneable<PayTeacherState> {
  String orderId;
  String info;
  String memberInfo;
  String status;
  String ctime;

  PayTeacherState({
    this.orderId,
    this.info,
    this.memberInfo,
    this.status,
    this.ctime,
  });

  factory PayTeacherState.fromJson(Map<String, dynamic> json) {
    return PayTeacherState(
      orderId: json['orderId'],
      info: json['info'],
      memberInfo: json['memberInfo'],
      status: json['status'],
      ctime: json['ctime'],
    );
  }

  @override
  PayTeacherState clone() {
    return PayTeacherState()
      ..orderId = orderId
      ..info = info
      ..memberInfo = memberInfo
      ..status = status
      ..ctime = ctime;
  }

  @override
  String toString() {
    return 'PayTeacherState{title: $orderId}';
  }
}
